package com.tjshop.android.model;

import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;

public class Promot {
	private String imageUrl;
	private String contentUrl;
	private String subjectId;

	public String getSubjectId() {
		return subjectId;
	}

	public void setSubjectId(String subjectId) {
		this.subjectId = subjectId;
	}

	public String getImageUrl() {
		return imageUrl;
	}

	public void setImageUrl(String imageUrl) {
		this.imageUrl = imageUrl;
	}

	public String getContentUrl() {
		return contentUrl;
	}

	public void setContentUrl(String contentUrl) {
		this.contentUrl = contentUrl;
	}

	public void parse(JSONObject banner) {
		try {
			setImageUrl(banner.getString("icon"));
			setContentUrl(banner.getString("url"));
			setSubjectId("subject_id");
		} catch (JSONException e) {
			e.printStackTrace();
		}
	}

}
